package com.shiliu.api.common.exception;

/**
 * @description: 全局业务异常类
 * @author: shiliu
 * @created: 2019/12/22 14:41
 * @version: v1.0.0
 */
public class ServiceException extends RuntimeException{
    /**
     * 错误信息
     */
    private String message;

    public ServiceException(String message){
        this.message = message;
    }

    public ServiceException(String message,Throwable e){
        super(message,e);
        this.message = message;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
